import {observable} from "mobx";

class QueryDeatilModel {
    store;
    @observable graduateYear; //毕业年份
    @observable majorName; //专业
    @observable classes; //班级
    @observable name; //姓名

    constructor(store, graduateYear, majorName, classes, name) {
        this.store = store;
        this.graduateYear = graduateYear;
        this.majorName = majorName;
        this.classes = classes;
        this.name = name;
    }

    //创建新实例
    static fromJS(store, object) {
        return new QueryDeatilModel(
            store,
            object.graduateYear,
            object.majorName,
            object.classes,
            object.name
        )
    }
}

export default QueryDeatilModel;